package com.shopping.mall.core.redis.service.impl;


import com.shopping.mall.core.module.order.service.OrderService;
import com.shopping.mall.core.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RedisServiceImpl implements RedisService {
    @Autowired
    private OrderService orderService;

    /**
     * 订单自动完成处理
     * @param orderId
     */
    @Override
    public void orderAutoFinish(String orderId) {
        orderService.autoFinish(orderId);
    }
}
